﻿<Window x:Class="CECB.V_TemplateViwer_Window"
        
        Title="V_TemplateViwer_Window"  xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
         
         xmlns:toolkit="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Input.Toolkit"
       
          WindowStartupLocation="CenterScreen"   Background="#AA000000" 
        AllowsTransparency="True" WindowStyle="None" WindowState="Maximized"
        mc:Ignorable="d" xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"   >
    <Grid VerticalAlignment="Center" HorizontalAlignment="Center"  Width="1000" Height="700">
        <Rectangle Margin="25,25,25,-22" Stroke="White" RadiusY="19.5" RadiusX="19.5" StrokeThickness="4" Width="950">
            <Rectangle.Effect>
                <DropShadowEffect Direction="330" BlurRadius="24" ShadowDepth="13" />
            </Rectangle.Effect>
            <Rectangle.Fill>
                <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                    <GradientStop Color="Black" Offset="0" />
                    <GradientStop Color="#FFA3A1A1" Offset="0.494" />
                    <GradientStop Color="#FF272121" Offset="0" />
                    <GradientStop Color="#FF272121" Offset="1" />
                </LinearGradientBrush>
            </Rectangle.Fill>
        </Rectangle>
<<<<<<< .mine
        <StackPanel Orientation="Vertical" Margin="0,35,0,-22">
           
=======
        <StackPanel Orientation="Vertical" Margin="0,35,0,-22">
>>>>>>> .r30669
            <GroupBox Header="Settings" Foreground="White" FontSize="14" Width="906">
                <StackPanel VerticalAlignment="Top" Orientation="Vertical" Margin="0,0,0,0" Height="159" Width="889" >
                    
                    <StackPanel Orientation="Horizontal">
                        <Label Content="Project Category :" Foreground="White" Width="187" VerticalAlignment="Top"></Label>
                        <ComboBox Height="31" Name="comboBox_projCatogory" Margin="10,0,0,0" FontSize="16" Width="323" DisplayMemberPath="cat_name" SelectedValuePath="cat_reference" SelectionChanged="comboBox_projCatogory_SelectionChanged" DropDownOpened="comboBox_projCatogory_DropDownOpened" Background="#FFFFECA1" />
                    </StackPanel>
                    <StackPanel Orientation="Horizontal">
                        <Label Content="Project Type :      "  Foreground="White" Width="187" VerticalAlignment="Top"></Label>
                        <ComboBox Height="35" Name="comboBox_projType" Margin="10,0,0,0" Width="323" FontSize="16" DisplayMemberPath="ptype_name" SelectedValuePath="ptype_reference" SelectionChanged="comboBox_projType_SelectionChanged" Background="#FFFFECA1" DropDownOpened="comboBox_projType_DropDownOpened_1"></ComboBox>
                    </StackPanel>
                    <StackPanel Orientation="Horizontal">
                        <Label Content="Select Project:   " Foreground="White" Width="187" VerticalAlignment="Top"></Label>
                        <toolkit:AutoCompleteBox Name="ProjectAutocompleteTextBox"  Width="324" Margin="10,0,0,0" Height="30"  ValueMemberPath="proj_name"  FilterMode="Contains"  ItemsSource="{Binding}"  TabIndex="1" IsTabStop="True"  SelectionChanged="ProjectAutocomplete_SelectionChanged" FontSize="18" Background="White" Opacity="1" HorizontalAlignment="Center" UseLayoutRounding="False" BorderBrush="#FFF8F8F8" BorderThickness="2">
                            <toolkit:AutoCompleteBox.ItemTemplate>
                                <DataTemplate>
                                    <StackPanel Orientation="Horizontal">
                                        <TextBlock Text="{Binding Path=proj_reference}"/>
                                        <TextBlock Text=" - "/>
                                        <TextBlock Text="{Binding Path=proj_name}"/>
                                    </StackPanel>
                                </DataTemplate>
                            </toolkit:AutoCompleteBox.ItemTemplate>
                        </toolkit:AutoCompleteBox>
                    </StackPanel>
                   
                    <StackPanel Orientation="Horizontal">
                        <Label Content="Search for exsisting  " Foreground="White" Width="130"></Label>
                        <Label Content=" " Name="lblsearchacim" Margin="-4,0,0,0" Foreground="White" Width="71"></Label>
                        <StackPanel Background="#FFFFE8A6" Orientation="Horizontal" Height="30" HorizontalAlignment="Left">

                            <toolkit:AutoCompleteBox Name="ImpactsAutocompleteTextBox"  Width="650" Margin="0,0,0,0" Height="30"  ValueMemberPath=""  FilterMode="Contains"  ItemsSource="{Binding}"  TabIndex="1" IsTabStop="True"  SelectionChanged="ImpactsAutocompleteTextBox_SelectionChanged" FontSize="18" Background="White" Opacity="1" HorizontalAlignment="Center" UseLayoutRounding="False" BorderBrush="#FFF8F8F8" BorderThickness="2" GotFocus="ImpactsAutocompleteTextBox_GotFocus" PreviewTextInput="ImpactsAutocompleteTextBox_PreviewTextInput">
                                <toolkit:AutoCompleteBox.ItemTemplate>
                                    <DataTemplate>
                                        <StackPanel Orientation="Horizontal">
                                            <TextBlock Text="{Binding Path=impt_name}"/>
                                            <TextBlock Text="{Binding Path=actv_name}"/>
                                        </StackPanel>
                                    </DataTemplate>
                                </toolkit:AutoCompleteBox.ItemTemplate>
                            </toolkit:AutoCompleteBox>
                            
                            <Button Width="40" Margin="0,0,0,0" Name="addImpactsButton" Content="+" FontWeight="Heavy" FontSize="24" Padding="0,-5,0,0" Foreground="Green" Background="AliceBlue" Click="addImpactsButton_Click"></Button>

                        </StackPanel>
                    </StackPanel>
                    <StackPanel Orientation="Horizontal">
                        <Label Content="Assign   to selected project :  " Foreground="White" VerticalAlignment="Top" Width="196"></Label>
                        <Button Content="Save" Foreground="White" VerticalAlignment="Center" Width="92" Height="28" Click="Button_Click" Background="#FF00A200" FontWeight="Bold"></Button>
                    </StackPanel>
                </StackPanel>
            </GroupBox>
            <StackPanel Orientation="Horizontal" Margin="0,0,0,0" Height="462">

                <GroupBox Margin="45,0,0,0" Header="Impacts template" Foreground="White" FontSize="14" Height="459"> 
                    <StackPanel Orientation="Vertical">
                        
                    <TreeView Height="434" HorizontalAlignment="Left" Margin="0,0,0,0" Name="treeViewImpacts" VerticalAlignment="Top" Width="462" SelectedItemChanged="treeViewImpacts_SelectedItemChanged" Background="#FFFFE8A6" BorderBrush="White" GotFocus="treeViewImpacts_GotFocus" />
                    </StackPanel>
                </GroupBox>
                <GroupBox Margin="10,0,0,0" Header="Activities template" Foreground="White" FontSize="14" Width="425" Height="460">
                    <TreeView Height="434" HorizontalAlignment="Left" Margin="0,0,0,0" Name="treeViewActivities" VerticalAlignment="Top" Width="428" Background="#FFFFE8A6" SelectedItemChanged="treeViewActivities_SelectedItemChanged" BorderBrush="White" GotFocus="treeViewActivities_GotFocus" />
                </GroupBox>
            </StackPanel>
        </StackPanel>
<<<<<<< .mine
        <Button Content="Remove" Height="22"  FontSize="14"  VerticalAlignment="Bottom" Margin="800,0,55,-9" Name="button1" Click="button1_Click" Background="#FFE61212" Foreground="White" FontWeight="Bold" />
        <Image Margin="0,35,40,0" HorizontalAlignment="Right"  Height="32" Source="/CECB;component/images/closeblack.png" VerticalAlignment="Top" Width="32" MouseLeftButtonDown="Image_MouseLeftButtonDown" />
=======
        </StackPanel>
        <Button Content="Remove" Height="22"  FontSize="14"  VerticalAlignment="Bottom" Margin="800,0,55,-9" Name="button1" Click="button1_Click" Background="#FFE61212" Foreground="White" FontWeight="Bold" />
>>>>>>> .r30669
    </Grid>
</Window>
